import request from '@/utils/request'

// 查询任务关联学生列表
export function listTask_student(query) {
  return request({
    url: '/teach/task_student/list',
    method: 'get',
    params: query
  })
}

// 查询任务关联学生详细
export function getTask_student(tsId) {
  return request({
    url: '/teach/task_student/' + tsId,
    method: 'get'
  })
}

// 新增任务关联学生
export function addTask_student(data) {
  return request({
    url: '/teach/task_student',
    method: 'post',
    data: data
  })
}

// 修改任务关联学生
export function updateTask_student(data) {
  return request({
    url: '/teach/task_student',
    method: 'put',
    data: data
  })
}

// 删除任务关联学生
export function delTask_student(tsId) {
  return request({
    url: '/teach/task_student/' + tsId,
    method: 'delete'
  })
}
